package com.coupon.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {
    private Integer id;
    private String name;
    private String phone;
    private String pwd;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date regTime;


/*    public Admin(){}
    public Admin(Integer id, String name, String phone, String pwd, Date regTime) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.pwd = pwd;
        this.regTime = regTime;
    }

    public String getPhone() {
        return phone;
    }
    public String getPwd() {
        return pwd;
    }
    public Integer getId() {
        return id;
    }
    public String getName() {
        return name;
    }
    public Date getRegTime() {
        return regTime;
    }


    public void setId(Integer id) {
        this.id = id;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }*/
}
